package com.chapter01exercise.homework14;

/**
 * @Author 小闽
 * @Date 2024/8/17 16:47
 * @PackageName: com.chapter01exercise.homework14
 * @ClassName: Homework14
 * @Description: 练习14
 * @Version 1.0
 */
public class Homework14 {
    /**
     * 在main()方法中执行： C c = new C(); 输出什么内容？
     * class A{
     *     public A() {
     *         System.out.println("我是A类");
     *     }
     * }
     * class B extends A {
     *     public B() {
     *          System.out.println("我是B类的无参构造");
     *    }
     *    public B(String name) {
     *          System.out.println(name + "我是B类的有参构造");
     *   }
     * }
     * class C extends B {
     *     public C(){
     *         this("hello");
     *         System.out.println("我是c类的无参构造");
     *     }
     *     public C(String name){
     *         super("hahaha");
     *         System.out.println("我是c类的有参构造");
     *     }
     * }
     */
    public static void main(String[] args) {
        C c = new C();

    }
}
